/**
 * 开通课程接口
 */
import request from '@/config/request'
import type { StudySearchForm, StudentOpenLessonForm } from '@/config/forms'

export default {
  getList: (form: StudySearchForm) => request.post('/backend/educations', form),
  open: (form: StudentOpenLessonForm) => request.post('/backend/educations/open', form),
  close: (id: number) => request.delete(`/backend/educations/${id}`)
}
